package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.expert.AuthExpertiseService;
import com.orange.modules.dao.expert.AuthExpertiseRepository;
import com.orange.modules.entity.expert.AuthExpertise;

@Service
public class AuthExpertiseServiceImpl implements AuthExpertiseService {

	
	@Autowired
	private AuthExpertiseRepository authExpertiseRepository;
	@Override
	public void saveAuthExpertAdvice(AuthExpertise a) {
		authExpertiseRepository.saveAuthExpertAdvice(a);

	}

	@Override
	public List<AuthExpertise> queryAuthExpertise(String groupId)
			throws SQLException {
		List<AuthExpertise> list = authExpertiseRepository.queryAuthExpertise(groupId);
		return list;
	}

	@Override
	public Page<AuthExpertise> queryAuthExpertiseByPage(Map<String, String> map)
			throws SQLException {
		Page<AuthExpertise> page = authExpertiseRepository.queryAuthExpertiseByPage(map);
		return page;
	}

}
